mui.init({
    
});

var protocol;
mui.plusReady(function () {
    protocol = new Vue({
        el: '#protocol',
        data: {
            content:''
        },
        mounted() {
            this.getprotocol();
        },
        methods: {
            getprotocol:function(){
                var api_host = plus.storage.getItem('HOST_URL');
                var self = this;
                mui.ajax({
                    url: api_host + '/api/other/other/useragreement',
                    dataType: 'json',
                    data: {},
                    type: 'get',
                    success: function (msg) {
                        if (msg.code == 1) {
                            self.content = msg.data;
                        } else {
                            mui.toast(msg.msg, {duration: '200',type: 'div'});
                        }
                    },
                    error: function (xhr, type, errorThrown) {
                        mui.toast('加载失败!', {duration: '200',type: 'div'});
                    },
                    complete:function () {
                        plus.nativeUI.closeWaiting();
                    }
                });
            },
        },
    })
})